package com.atguigu.day01;

/**
 * @author sx
 * @date 2022-02-12 11:46
 */
public class Person {
    private String name;

    public static void main(String[] args) {
        //类是抽象的模板，对象是具体的实例
        Class<Person> personClass = Person.class;
        System.out.println(personClass);

        ClassLoader classLoader = personClass.getClassLoader();
        System.out.println(classLoader);
        System.out.println(classLoader.getParent());
        System.out.println(classLoader.getParent().getParent());

        try {
            Person person = personClass.newInstance();
            System.out.println(person);
        } catch (InstantiationException e) {
            e.printStackTrace();
        } catch (IllegalAccessException e) {
            e.printStackTrace();
        }

    }
}
